<?php
/* --------------------------------------------------------------
   gm_counter_conf.php 2008-07-29 gambio
   Gambio OHG
   http://www.gambio.de
   Copyright (c) 2008 Gambio OHG
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]
   --------------------------------------------------------------
*/
	defined('_VALID_XTC') or die('Direct Access to this location is not allowed.');
?>

<table border="0" width="100%" cellspacing="0" cellpadding="2">
	<tr>
		<td valign="top" align="left" class="main">
			<strong><?php echo GM_COUNTER_TITLE_CONF; ?></strong>
		</td>
	</tr>
</table>
<br />
<form id="gm_counter_form">
	<table border="0" width="100%" cellspacing="0" cellpadding="2" id="gm_table">
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<?php echo TITLE_CONF_IP; ?>
			</td>
			<td valign="top" align="left" class="main">
				<select onChange="gm_fadeout_boxes('gm_status');" style="width:150px;" id="GM_COUNTER_IP_BARRIER">																		
					<option selected value="<?php echo gm_get_conf('GM_COUNTER_IP_BARRIER'); ?>"><?php echo constant('SELECT_IP_' . gm_get_conf('GM_COUNTER_IP_BARRIER')); ?></option>
					
					<?php	if(gm_get_conf('GM_COUNTER_IP_BARRIER') != '60') { ?>
					<option value="60"><?php  echo SELECT_IP_60; ?></option>
					
					<?php	} if(gm_get_conf('GM_COUNTER_IP_BARRIER') != '3600') { ?>
					<option value="3600"><?php  echo SELECT_IP_3600; ?></option>
					
					<?php	} if(gm_get_conf('GM_COUNTER_IP_BARRIER') != '43200') { ?>
					<option value="43200"><?php echo SELECT_IP_43200; ?></option>
					
					<?php	} if(gm_get_conf('GM_COUNTER_IP_BARRIER') != '86400') { ?>
					<option value="86400"><?php echo SELECT_IP_86400; ?></option>
					<?php	} ?>
				</select>
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<?php echo TITLE_CONF_VISITS; ?>
			</td>
			<td valign="top" align="left" class="main">
				<input onClick="gm_fadeout_boxes('gm_status');" type="text" value="<?php echo $gm_conf['hits']; ?>" style="width:150px;" id="gm_counter_visits_total">
			</td>
		</tr>
		<tr>
			<td valign="top" align="left" class="main" width="160">
				<?php echo TITLE_CONF_START_DATE; ?>
			</td>
			<td valign="top" align="left" class="main">			
				<input readonly class="gm_date-pick dp-applied" onClick="gm_fadeout_boxes('gm_status');" type="text" value="<?php echo date('Y-m-d', $gm_date['date']); ?>" style="width:150px;" id="gm_counter_date">
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">		
				&nbsp;
			</td>
			<td valign="middle" align="left" class="main">
				&nbsp;
			</td>
		</tr>
		<tr>
			<td valign="middle" align="left" class="main">				
				<input class="button" type="button" value="<?php echo BUTTON_SAVE;?>" onClick="gm_fadeout_boxes('gm_status');gm_update_boxes('<?php echo xtc_href_link('gm_counter_action.php', 'action=gm_counter_update'); ?>', 'gm_status')">																									 
			</td>
			<td valign="middle" align="left" class="main">				
				<span id="gm_status" style="height:20px"></span>																									 
			</td>
		</tr>
	</table>
</form>